package com.fund.user.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fund.user.entity.TUser;
import com.fund.user.vo.req.UserRegistVo;
import com.fund.user.vo.resp.UserRespVo;
import com.fund.utils.AppResponse;

import java.util.List;

/**
 * (TUser)表服务接口
 *
 * @author makejava
 * @since 2023-02-15 15:06:58
 */
public interface TUserService extends IService<TUser> {

    Page<TUser> getPage(Page<TUser> page, TUser tUser);

    Page<TUser> getPageLikeName(Page<TUser> page, TUser tUser);

    Boolean insertOne(TUser tUser);


    Boolean updateOneById(TUser tUser);


    Boolean deleteListByIds(List<String> idList);


    TUser getOneById(String id);


    List<TUser> queryAll(TUser tUser);

    AppResponse<UserRespVo> getUserByLogin(String account, String password);

    AppResponse<Object> loginPhone(String phone, String code);

    AppResponse<Object> loginEmail(String email, String code);

    AppResponse<Object> register(UserRegistVo vo);

    AppResponse<Object> sendSms(String account);

    AppResponse<Object> sendCode(String account);

    AppResponse<Object> sendEmailReg(String email);

    AppResponse<Object> sendEmailLog(String email);
}

